﻿@using EraNet.Core;
@using EraNet.Core.Model.Test;
@using EraNet.Core.Model.Drivings;
@using EraNet.Core.Model.Account;
@using EraNet.Core.Model.Messages;
@using EraNet.Common;
@{
    Layout = "~/Areas/IMS/Views/Shared/_LayOut.cshtml";
    
    var m = (Employee)ViewBag.employee;
    //学校
    var school = (DrivingSchool)ViewBag.schoolaccount;
    //公告
    var nt = (IPagedList<Notices>)ViewBag.notice;
    //feed
    var mr=(IPagedList<Feedback>)ViewBag.feed;

    var exam = (IPagedList<MemberExam>)ViewBag.Exam; 
}
@section javascript
{
}
<div class="wrapper">
<!-- Left column/section -->
<div class="column width6 first" style="display:inline">
<div class="colgroup leading">
<div class="column width3 first">
<h3>欢迎回来, <a href="#">@m.AccountName</a></h3>
<p>
今天已有 <b>xx</b>学员已经通过模拟考试<br />最近6个月共有<a href="">xxx</a>位通过<br />
未处理的学员回馈有<a href="#">@mr.Where(c=>c.Status==0).Count()</a>条
</p>
</div>
<div class="column width3">
<h4>安全信息</h4>
<p>
您最后一次登陆是在 @m.LastLoginDate<br />IP地址: @m.LastIPAddress <br />
如果不是本人登陆，请及时更改密码.
</p>
</div>
</div>

<div class="colgroup leading">
<div class="column width3 height3 first">
<h4>考试信息</h4>
<hr/>
<table class="no-style full">
<tbody>
@foreach (var ex1 in exam)
{
<tr>
<td >@ex1.MemberName</td>
<td class="ta-right">@ex1.IdCard</td>
<td class="ta-right">@ex1.PassNum</td>
</tr>
}
</tbody>
</table>
</div>
<div class="column width3 height3">
<h4>意见反馈</h4>
<hr/>
<table class="no-style full">
<tbody>
@foreach (var fb1 in mr)
{
<tr>
<td>@fb1.Titles</td>
<td class="ta-right">@fb1.CreateTime</td>
<td class="ta-right">@Html.Raw(fb1.Status == 0 ? "处理中" : fb1.Status == 1 ? "已回复" : "已完结")</td>
</tr>
}
</tbody>
</table>
</div>
</div>
				
<div class="colgroup leading">
<div class="column width3 height3 first">
<h4>待办信息: <a href="#">0</a></h4>
<hr/>
<table class="no-style full">
<tbody>
<tr>
<td>科目一</td>
<td class="ta-right">暂未开放</td>
<td></td>
</tr>
<tr>
<td>科目二</td>
<td class="ta-right">暂未开放</td>
<td></td>
</tr>
<tr>
<td>科目三</td>
<td class="ta-right">暂未开放</td>
<td></td>
</tr>
</tbody>
</table>
</div>
<div class="column width3 height3">
<h4>约车记录: <a href="#">0</a></h4>
<hr/>
<table class="no-style full">
<tbody>

<tr>
<td>暂未开放</td>
<td class="ta-right"><a href="#"></a></td>
<td class="ta-right"></td>
</tr>

</tbody>
</table>
</div>
</div>		
</div>

<div class="column width2"  style="display:inline">
<div id="rightmenu">
<header>
<h3>账户信息</h3>
</header>
<dl class="first">
<dt><img width="16" height="16" alt="" SRC="@Url.Content("~/Styles/img/key.png")"></dt>
<dd><a href="#">驾校名称</a></dd>
<dd class="last">@school.DrivingNames</dd>
<dt><img width="16" height="16" alt="" SRC="@Url.Content("~/Styles/img/key.png")"></dt>
<dd><a href="#">联系电话</a></dd>
<dd class="last">@school.Telephone</dd>
</dl>
</div>
<div class="content-box">
<div>
<h3>最新公告</h3>
</div>
<table>
@foreach (var n1 in nt)
{
    <tr>
        <td width="150px"><a href="/Messages/NoticesInfo?noticeId=@n1.Id">@(Utility.GetSubString(n1.ShortTitle,15,"..."))</a></td>
        <td style="text-align:right">@n1.CreateDate.ToString("yyyy-MM-dd")</td>
    </tr>
}
@if (nt.Count > 0)
{
    <tr>
        <td colspan="2" align="right" ><a href="/Messages/Notices">更多</a></td>
    </tr>
}
else
{
    for (int i = 0; i <= 5; i++)
    {
         <tr>
              <td>&nbsp;</td>
        </tr>
    } 
}
</table>
</div>
</div>
<!-- End of Right column/section -->
				
</div>
